package common

type IOnce interface {
	Once() bool
	SetOnce(bool)
}

type One struct {
	once bool
}

func (o *One) Once() bool {
	return o.once
}

func (o *One) SetOnce(isOnce bool) {
	o.once = isOnce
}
